package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "article_class",comment = "笔记分类表")
public class ArticleClass {
    @AcColumn(name = "id",comment = "笔记分类ID",type = ColumnTypeEnums.BIGINT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "用户ID",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "class_name",defaultValue = "",comment = "分类名",type = ColumnTypeEnums.VARCHAR,length = 20)
    private String class_name;

    @AcColumn(name = "sort",defaultValue = "0",comment = "排序",type = ColumnTypeEnums.TINYINT)
    private Integer sort;

    @AcColumn(name = "is_default",defaultValue = "0",comment = "默认分类[1:是;0:不是]",type = ColumnTypeEnums.TINYINT)
    private Integer is_default;

    @AcColumn(name = "created_at", comment = "创建时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;

    @AcColumn(name = "updated_at", comment = "更新时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime updatedAt;
}
